<?php

//拦截
//$tag = getHttpVar('tag');
if(!isset($lang['nav_tag'][$tag]))
{
	exit('404');
}
$nav_id = $lang['nav_tag'][$tag];
$nav = $lang['nav'][$nav_id];
$_GET['c'] = $lang['module'][$nav['module_tag']]['tag'];

if($nav['fid'])
{
	if($lang['nav'][$nav['fid']]['fid'])
	{
		
	}
	else
	{
		#二级分类
		$nav['top'] = $lang['nav'][$nav['fid']]['tag'];
	}
}
else
{
	//一级分类
	$nav['top'] = $nav['tag'];
}

//p($nav);
$config['nav_id'] = $nav_id;
$config['nav'] = $nav;
//$_GET['m']



//p($_GET);